home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / int_util.zip / GET_INT.LST < prev    next >
File List  |  1986-12-21  |  3KB  |  65 lines

  1. Microsoft (R) Macro Assembler  Version 4.00                 12/21/86 10:35:08
  2.                                                             Page     1-1
  3.                                                             
  4.  
  5.                                 ; C Usage: get_int (n, *array [ 2 ]) 
  6.                                 ; Returns: array [0] = interrupt segment 
  7.                                 ;          array [1] = interrupt offset 
  8.                                  
  9.  0000                           _TEXT SEGMENT BYTE PUBLIC 'CODE' 
  10.                                 ASSUME    CS:_TEXT 
  11.                                 PUBLIC    _get_int 
  12.  0000                           _get_int  PROC    NEAR 
  13.                                           ; 
  14.  0000  55                                 push  bp 
  15.                                               ; save bp register 
  16.  0001  8B EC                              mov    bp, sp 
  17.                                               ; make the stack pointer 
  18.                                               ; addressable 
  19.  0003  B4 35                              mov    ah, 35h 
  20.                                               ; load in the get interrupt 
  21.                                               ; function 
  22.  0005  8A 46 04                           mov    al, [bp + 4] 
  23.                                               ; get the interrupt number off 
  24.                                               ; the stack 
  25.  0008  CD 21                              int    21h 
  26.                                               ; call the dos interrupt 
  27.  000A  8B 6E 06                           mov    bp, [bp + 6] 
  28.                                               ; make the array addressable 
  29.  000D  8C 46 00                           mov    [bp + 0], es 
  30.                                               ; save interrupt segment 
  31.  0010  89 5E 02                           mov    [bp + 2], bx 
  32.                                               ; save interrupt offset 
  33.  0013  5D                                 pop bp 
  34.                                               ; restore bp 
  35.  0014  C3                                 ret 
  36.                                           ; 
  37.                                 _get_int  ENDP 
  38.  0015                           _TEXT     ENDS 
  39.                                           END 
  40. Microsoft (R) Macro Assembler  Version 4.00                 12/21/86 10:35:08
  41.                                                             Symbols-1
  42.                                                              
  43.  
  44. Segments and Groups:
  45.  
  46.                 N a m e             Size    Align    Combine Class
  47.  
  48. _TEXT  . . . . . . . . . . . . .      0015    BYTE    PUBLIC    'CODE'
  49.  
  50. Symbols:            
  51.  
  52.                 N a m e             Type    Value    Attr         
  53.  
  54. _GET_INT . . . . . . . . . . . .      N PROC    0000    _TEXT    Global    Length = 0015
  55.  
  56.  
  57.      35 Source  Lines
  58.      35 Total   Lines
  59.      24 Symbols
  60.  
  61.   50376 Bytes symbol space free
  62.  
  63.       0 Warning Errors
  64.       0 Severe  Errors
  65.